package severlt;

public class DuiXiang {
    private int aid;
    private String name;
    private String time;
    private int type;
    private int sid;

    public DuiXiang(int aid, String name, String time, int type, int sid) {
        this.aid = aid;
        this.name = name;
        this.time = time;
        this.type = type;
        this.sid = sid;
    }
    public DuiXiang(String time, int type){
        this.time = time;
        this.type = type;
    }

    public DuiXiang() {
    }

    public int getAid() {
        return aid;
    }

    public void setAid(int aid) {
        this.aid = aid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    @Override
    public String toString() {
        return "DuiXiang{" +
                "aid=" + aid +
                ", name='" + name + '\'' +
                ", time='" + time + '\'' +
                ", type=" + type +
                ", sid=" + sid +
                '}';
    }
}
